<template>
  <div>
    <sort-bar>
      <template #left>
        <div class="left">喜欢这个歌单的人</div>
      </template>
    </sort-bar>
    <div class="person">
      <img
        v-for="item in liker"
        :key="item.index"
        :src="item.avatarUrl"
        :alt="item.nickname"
        :title="item.nickname"
      />
    </div>
  </div>
</template>

<script>
import SortBar from '@/components/content/sortbar/SortBar'

export default {
  components: {
    SortBar
  },
  props: {
    liker: Array,
    default() {
      return []
    }
  }
}
</script>

<style scoped>
.sort-bar {
  border-bottom: 1px solid #aaa;
}
.sort-bar >>> .left {
  flex: 20;
  font-size: 12px;
  font-weight: 700;
}
.left {
  color: #000;
}

.person {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.person img {
  margin-top: 15px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
</style>